package org.tea.inventory.domain.tea;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 物流公司信息对象 logistics_company
 * 
 * @author dongxb
 * @date 2025-04-14
 */
@ApiModel(value = "物流公司信息对象")
@Data
@NoArgsConstructor
public class LogisticsCompany implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 物流公司名称 */
    @ApiModelProperty(value = "物流公司名称")
    private String logisticsName;

    /** 快递查询代码 */
    @ApiModelProperty(value = "快递查询代码")
    private String queryCode;

    /** 菜鸟代码 */
    @ApiModelProperty(value = "菜鸟代码")
    private String rookieCode;

    /** 备注 */
    @ApiModelProperty(value = "备注")
    private String remarks;

    /** 物流公司状态：0启用，1停用 */
    @ApiModelProperty(value = "物流公司状态：0启用，1停用")
    private Integer status;
    private String statusStr;

    /** 是否删除：0未删除，1已删除 */
    @ApiModelProperty(value = "是否删除： 0未删除，1已删除")
    private Integer delFlag;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    /** 创建者 */
    @ApiModelProperty(value = "创建者")
    private String createUserId;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateDate;

    /** 更新者 */
    @ApiModelProperty(value = "更新者")
    private String updateUserId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setLogisticsName(String logisticsName) 
    {
        this.logisticsName = logisticsName;
    }

    public String getLogisticsName() 
    {
        return logisticsName;
    }

    public void setQueryCode(String queryCode) 
    {
        this.queryCode = queryCode;
    }

    public String getQueryCode() 
    {
        return queryCode;
    }

    public void setRookieCode(String rookieCode) 
    {
        this.rookieCode = rookieCode;
    }

    public String getRookieCode() 
    {
        return rookieCode;
    }

    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    public void setCreateUserId(String createUserId) 
    {
        this.createUserId = createUserId;
    }

    public String getCreateUserId() 
    {
        return createUserId;
    }

    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }

    public void setUpdateUserId(String updateUserId) 
    {
        this.updateUserId = updateUserId;
    }

    public String getUpdateUserId() 
    {
        return updateUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("logisticsName", getLogisticsName())
            .append("queryCode", getQueryCode())
            .append("rookieCode", getRookieCode())
            .append("remarks", getRemarks())
            .append("status", getStatus())
            .append("createDate", getCreateDate())
            .append("createUserId", getCreateUserId())
            .append("updateDate", getUpdateDate())
            .append("updateUserId", getUpdateUserId())
            .toString();
    }
}
